package com.wench.leetcode.simple_factory;

import org.junit.Test;

/**
 * @author wench
 * @date 2021/12/27 17:40
 */
public class SimpleFactoryClientTest {

    @Test
    public void test() {
        MaskFactory factory = new MaskFactory();
        // 输出：这是医用口罩
        System.out.println(factory.create("Surgical"));
        // 输出：这是 N95 口罩
        System.out.println(factory.create("N95"));
    }
}
